import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 试乘试驾车返利兑换申请维护


// 列表查询 /ttVsTestDirveRebate/page
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveRebate/page`, params)

// 查车 /ttVsTestDirveRebate/testDirveRebateVehicle
export const VINInfo = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveRebate/testDirveRebateVehicle`, params)

// 详情  /ttVsTestDirveRebate/selectOne
export const queryById = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveRebate/selectOne?id=${id}`)

// 保存 提交 /ttVsTestDirveRebate/saveOne
export const saveData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveRebate/saveOne`, params)

// 导出 /ttVsTestDirveRebate/excel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveRebate/excel`, params, {
  responseType: 'blob'
})
